package com.example.springboot_shopsystem01.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.springboot_shopsystem01.domain.Good;

import java.util.List;

public interface GoodService {
    Boolean save(Good good);      //创建
    Boolean update(Good good);        //修改
    Boolean delete(Integer id);     //删除
    Good getById(Integer id);      //查找
    List<Good> getAll();           //获取所有
    IPage<Good> getPage(int currentPage, int pageSize);  //重载：根据页数查找
    IPage<Good> getPage(int currentPage, int pageSize, Good good);  //重载：根据页面以及条件查找
}
